#pragma once

#include "afxwin.h"
#include "DataClass.h"

// CCdPathDialog dialog

class CCdPathDialog : public CDialog
{
	DECLARE_DYNAMIC(CCdPathDialog)

public:
	CCdPathDialog(CWnd* pParent = NULL);   // standard constructor
	virtual ~CCdPathDialog();

// Dialog Data
	enum { IDD = IDD_DIALOG_CDPATH };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	static BOOL Execute(CCDMap* APackages, CString& ACDName, CString& ACDPath, 
		CString& ACDLabel, int& APackageId);
	//void InitPackages(CCDMap& APackages);
	CString m_Path;
	CString m_Label;
	CString m_Name;
	CCDMap* m_mapPackages;
public:
	afx_msg void OnBnClickedButtonSelectpath();
	afx_msg void OnBnClickedOk();
	CComboBox m_cbPackages;
public:
	virtual BOOL OnInitDialog();
	CComboBox m_cbPath;
private:
	void InitCDPath(void);
public:
	int m_iIndexOfPackage;
};
